.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.nh
.ad l

.TH "py-ini-config" "3" "2023-06-06"
.P
.SH NAME
.P
py-ini-config - functions to work with a ini-like config files.\&
.P
.SH SYNOPSIS
.P
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config set [-c, --create] file [section, -n, --no-section] var value [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config comment file [section, -n, --no-section] [var] [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config uncomment file [section, -n, --no-section] [var] [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config get file [section, -n, --no-section] var [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config is_set file [section, -n, --no-section] var [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config get_commented file [section, -n, --no-section] var [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config del file [section, -n, --no-section] var [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config del_section file section [-s separator]
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
py-ini-config is_empty file section [-s separator]

.RE
.P
.SH DESCRIPTION
.P
.SS -s \fBseparator\fR
If set, uses specified \fBseparator\fR in config file instead of '='.\&
.P
.SS -n, --no-section
If set instead of \fBsection\fR, switches work to config files with no sections at all.\&
.P
.SS -c, --create
If set creates new config file.\&
.P
.SS set
Function modifies or adds a variable in the \fBsection\fR.\& If this \fBsection\fR doesn't exist, it will be created.\&
.P
.SS comment
Function comments \fBvar\fR variable in a specific \fBsection\fR or the entire \fBsection\fR as a whole.\&
.P
.SS uncomment
Function uncomments \fBvar\fR variable in a specific \fBsection\fR or the entire \fBsection\fR as a whole.\&
.P
.SS get
Function outputs \fBvar\fR variable in a specific \fBsection\fR from config \fBfile\fR.\&
.P
.SS is_set
Function outputs nothing.\& It only checks that \fBvar\fR variable exists in a specific \fBsection\fR.\&
Returns 0 if variable was found, otherwise returns 1.\&
.P
.SS get_commented
Function outputs value of a commented \fBvar\fR variable in a specific \fBsection\fR from config \fBfile\fR.\&
.P
.SS del
Function removes variable in a specific \fBsection\fR from config \fBfile\fR.\&
.P
.SS del_section
Function removes the entire \fBsection\fR from config \fBfile\fR.\&
.P
.SS is_empty
Function outputs nothing.\& It only checks that specific \fBsection\fR is empty.\&
Returns 0 if it is empty, otherwise returns 1.\&
.P

.SH AUTHOR
M OS Team\&
.P

